{template '../service_common/header'}

    <script src="{php echo (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') ? 'https' : 'http'}://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>

    <div class="layui-body" style="left: 0; background: url({KB_WEB_FRONT_IMG}/login_bg.png) no-repeat left top; background-size:100% 100% ">
        <div class="loginContent">
            <h2>{php echo getSite('site_name')}</h2>
            <div id="login_container" style=""></div>
        </div>
    </div>

    <script>
        var obj = new WxLogin({
            id:"login_container",
            appid: "{php echo getSite('appid')}",
            scope: "snsapi_login,snsapi_base",
            redirect_uri: "{$url}",
            state: "{$state}",
            style: "",
            href: ""
        });
    </script>

{template '../service_common/footer'}